<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>

<head>
<sx:head cache="false" />
<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css"
	type="text/css" />
<link rel="stylesheet" href="/hrs-intranet/styles/errortag.css"
	type="text/css" />
</head>

<table width="100%">
	<tr>
		<td>
			<table width="100%">
				<tr>
					<td><display:table id="certificate" name="certificates"
							requestURI="EditExtraCertificatesAction_editExtraCertificates.action"
							class="listable" cellpadding="0" cellspacing="0" pagesize="12"
							style="width:70%">
							<display:column property="code" title="Code" sortable="true" />
							<display:column property="simpleName" title="Name"
								sortable="true" />
						</display:table>
					</td>
				</tr>
				<tr>
					<td valign="top" align="center">
					<h3>Add further Microsoft certificates</h3>
					<s:form cssClass="formClass">
							<s:if test="hasFieldErrors()">
								<div class="oldErrorMsg">
									<h4 class="oldErrorTitle">Error(s) with submission:</h4>
									<s:iterator value="fieldErrors">
										<s:iterator value="value">
											<li><font class="errorMsgFont"> <s:property /> </font>
											</li>
										</s:iterator>
									</s:iterator>
								</div>
								<br />
								<br />
							</s:if>

							<s:hidden key="personId" />
							<s:hidden key="userId" />

							<s:textfield name="codes" required="true" label="Code"></s:textfield>
							<s:textfield name="names" required="true" label="Name"></s:textfield>

							<s:submit action="EditExtraCertificatesAction"
								method="saveAndAddNew" key="Save and add other" cssClass="btn"
								cssStyle="position:relative; width:150px;" id="btnother" />
							<s:submit action="EditExtraCertificatesAction" method="save"
								key="Save" cssClass="btn"
								cssStyle="position:relative; left:-95px;" id="okbutton" />
							<s:submit action="EditExtraCertificatesAction" method="cancel"
								key="Cancel" cssClass="btnCancel"
								cssStyle="position:relative; left:0px; top:-25px; _top:-27" />
						</s:form>
					</td>
				</tr>
			</table></td>

		<td>
			<form id="view_person" actio n="/hrs-intranet/admin/user/view.do"
				method="POST">
				<input type="hidden" name="userId" value="${userId}"> <input
					type="hidden" name="personId" value="${userId}">
				<vectrics:formButton elementId="view.person.btn" code="button.param"
					phraseCode="button.candidate.view.person" value="submit"
					name="submit" />
			</form></td>
	</tr>
</table>
